export function getToken(){
    const userInfo = JSON.parse(localStorage.getItem('userinfo'));
    if(userInfo){
        const token = userInfo.token;
        return token;
    }else{
        return "";
    }
}